package com.iwayin.core.bo.setting;

import com.iwayin.core.bo.BaseBO;
import com.iwayin.core.dao.setting.EmailSettingDAO;
import com.iwayin.core.dataobject.EmailSettingDO;

public class EmailSettingBOImpl extends BaseBO implements EmailSettingBO {
	
	private EmailSettingDAO emailSettingDAO;

	@Override
	public void createEmailSetting(EmailSettingDO es) {
		emailSettingDAO.createEmailSetting(es);
	}

	@Override
	public Integer updateEmailSetting(EmailSettingDO es) {
		return emailSettingDAO.updateEmailSetting(es);
	}

	@Override
	public EmailSettingDO getEmailSetting(Long userId) {
		return emailSettingDAO.getEmailSettingDO(userId);
	}

	public void setEmailSettingDAO(EmailSettingDAO emailSettingDAO) {
		this.emailSettingDAO = emailSettingDAO;
	}

}
